﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.views {
    import flash.events.*;
    import net.wooga.pets.views.components.*;
    import net.wooga.pets.constants.*;
    import org.robotlegs.mvcs.*;

    public class VisitFriendTransitionMediator extends Mediator {

		[Inject]
        public var view:VisitFriendTransition;

        override public function onRegister():void{
            eventMap.mapListener(eventDispatcher, EventConstants.SHOW_VISIT_FRIEND_TRANSITION, this.showVisitFriendTransition);
            eventMap.mapListener(eventDispatcher, EventConstants.HIDE_VISIT_FRIEND_TRANSITION, this.hideVisitFriendTransition);
            super.onRegister();
        }
        private function hideVisitFriendTransition(_arg1:Event):void{
            ((this.view.hasCSSClass("show")) && (this.view.hide()));
        }
        private function showVisitFriendTransition(_arg1:Event):void{
            this.view.show();
        }

    }
}//package net.wooga.pets.views 
